#pragma once

#ifndef QCEFEXTWIDGET_H
#define QCEFEXTWIDGET_H

#include "QCefWidget.h"
#include "QCefNcwWidget.h"
#include "QCefOsrWidget.h"
#include "QCefNcwDelegate.h"
#include "QCefOsrDelegate.h"


class QCefExtWidget
#ifdef QT_CEF_OSR
    : public QCefOsrWidget
    , public QCefOsrDelegate
#else
    : public QCefNcwWidget
    , public QCefNcwDelegate
#endif
{
    Q_OBJECT
public:
    QCefExtWidget(QWidget * parent = nullptr, Qt::WindowFlags flags = Qt::WindowFlags());
    QCefExtWidget(const QString & strUrl, QWidget * parent = nullptr, Qt::WindowFlags flags = Qt::WindowFlags());
    virtual ~QCefExtWidget();

protected:
    virtual int createClient() override;
    virtual void closeEvent(QCloseEvent *event) override;

signals:

};

#endif // QCEFEXTWIDGET_H
